import java.util.Scanner;

/**
 * 成绩练习
 */
public class ScoreDemo {
    public static void main(String[] args) {
        System.out.println("输入一个成绩");
        int Score = new Scanner(System.in).nextInt();
        switch (Score / 10) {
            case 1: case 2: case 3: case 4: case 5:
                System.out.println("不及格");break;
            case 6:
                System.out.println("及格");break;
            case 7:
                System.out.println("中");break;
            case 8:
                System.out.println("良");break;
            case 9: case 10:
                System.out.println("优");break;
            default:
                System.out.println("成绩非法！");
        }
    }
}
